<div id="main-content" class="departments">    
<svg version="1.1" id="svg-department-color-big" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
	 width="50px" height="50px" viewBox="0 0 50 50" enable-background="new 0 0 50 50" xml:space="preserve">
<rect width="50" height="50" fill="<?php echo $this->department->color?>"/>
</svg>
<h2><?php echo $this->department->name?></h2>
<div id="main-content-plan">
<?php echo $this->form ?>
</div>
</div>
<div class="list-wrapper"> 
        <ul>            
        <?php foreach ($this->departments as $department ) { ?> 
            <li id=""> 
                 <a href ="<?php echo $this->baseUrl(); ?>/department/edit/id/<?php echo $department->id ?>" id="<?php echo $department->name?>">
                    <?php echo $department->name?>                       
                 </a>     
                <?php if ($department->id == $this->id) { ?>                 
                <svg version="1.1" class="svg-department-color-small" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
                         width="15px" height="15px" viewBox="0 0 15 15" enable-background="new 0 0 15 15" xml:space="preserve">
                <g id="departments-colors">
                    <rect width="15" height="15" fill="<?php echo $department->color ?>"/>
                </g>
                </svg>
                <?php } ?>
                <?php if ($department->id == $this->id) { ?>                 
                    <ul id="shelflist">
                    <?php foreach ($this->shelfs as $shelf ) {   ?>                                                  
                                <li> 
                                    <svg version="1.1" class="svg-shelf-color-small" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
                                             width="5px" height="30px" viewBox="0 0 5 30" enable-background="new 0 0 5 30" xml:space="preserve">
                                    <rect width="5" height="30" fill="<?php echo $department->color?>"/>
                                    </svg>
                                     <a href ="<?php echo $this->baseUrl(); ?>/shelf/edit/id/<?php echo $shelf->id; ?>" id="">
                                        <?php echo $shelf->label?>
                                    </a>
                                </li>                            
                    <?php } ?>
                    </ul>
                <?php } ?>
            </li>                     
        <?php } ?>
        </ul>        
</div>